package com.jzlin.funhub.admin.model.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 发布文章.
 *
 * @author linjz
 * @since 2025/7/28
 */
@Data
@ApiModel
public class ArticlePublishReq {
    @ApiModelProperty("文章标题")
    @NotBlank(message = "文章标题不能为空")
    private String title;

    @ApiModelProperty("文章摘要")
//    @NotBlank(message = "文章摘要不能为空")
    private String summary;

    @ApiModelProperty("文章详情")
    @NotBlank(message = "文章详情不能为空")
    private String content;

    @ApiModelProperty("分类id")
    @NotNull(message = "分类id不能为空")
    private Long categoryId;

    @ApiModelProperty("文章封面图片")
    private String coverImage;

    @ApiModelProperty("文章标签")
    private List<String> tags;
}
